package com.lbtc.service;

import com.github.pagehelper.PageInfo;
import com.lbtc.domian.Category;
import com.lbtc.exception.LbtcMallException;
import com.lbtc.request.AddCategoryReq;
import com.lbtc.vo.CategoryVO;


import java.util.List;


public interface CategoryService {
    void add(AddCategoryReq addCategoryReq) throws LbtcMallException;

    void update(Category category) throws LbtcMallException;

    void delete(Integer id) throws LbtcMallException;


    PageInfo listForAdmin(Integer pageNumber, Integer pageSize);


    List<CategoryVO> listForCustomer(Integer categoryId);
    List<CategoryVO> getMenuList(Integer id);

    List<CategoryVO> listCategoryForCustomer(Integer categoryId);
}
